import { Int } from "@sker/core";
import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from "typeorm";

@Entity({
    name: 'spider_gonggao'
})
export class Gonggao {
    @PrimaryGeneratedColumn()
    id!: number;

    @Column({
        default: ''
    })
    author!: string;

    @Column({
        type: 'text'
    })
    content!: string;

    @Column({
        nullable: true
    })
    post_at!: Date;

    @Column({
        nullable: true
    })
    eid!: string;

    /**
     * {
            label: '陈述',
            value: 'A1'
        }, {
            label: '疑问',
            value: 'A2'
        }, {
            label: '感叹',
            value: 'A3'
        }, {
            label: '祈祷',
            value: 'A4'
        }
     */
    @Column({
        default: ''
    })
    yuqi!: string;

    /**
     * {
            label: '关心',
            value: 'B1'
        }, {
            label: '追责',
            value: 'B2'
        }, {
            label: '称赞',
            value: 'B3'
        }, {
            label: '补救',
            value: 'B4'
        }, {
            label: '完全否认',
            value: 'B5'
        }, {
            label: '部分否认',
            value: 'B6'
        }, {
            label: '解释',
            value: 'B7'
        }, {
            label: '承诺',
            value: 'B8'
        }, {
            label: '转移',
            value: 'B9'
        }
     */
    @Column({
        default: ''
    })
    taidu!: string;

    /**
     * {
            label: '客观',
            value: 0
        },{
            label: '较弱',
            value: 1
        },{
            label: '弱',
            value: 2
        },{
            label: '强',
            value: 3
        },{
            label: '级强',
            value: 4
        }
     */
    @Column()
    qiangdu!: string;

    /**
     * {
            label: '响应型',
            value: 'D1'
        }, {
            label: '处置弱型',
            value: 'D2'
        }, {
            label: '处置强型',
            value: 'D3'
        }, {
            label: '长期行动型',
            value: 'D4'
        }, {
            label: '政策型',
            value: 'D5'
        }
     */
    @Column({
        default: ''
    })
    fangshi!: string;

    /**
     * {
            label: '真诚亲民',
            value: 'C1'
        }, {
            label: '诙谐幽默',
            value: 'C2'
        }, {
            label: '客观真实',
            value: 'C3'
        }, {
            label: '古板僵化',
            value: 'C4'
        }, {
            label: '避重就轻或避硬就软',
            value: 'C5'
        }, {
            label: '措辞不当',
            value: 'C6'
        }, {
            label: '说教口吻或居高临下',
            value: 'C7'
        }
     */
    @Column({
        default: ''
    })
    fengge!: string;

    @Column({
        default: ''
    })
    reason!: string;
}
